import nGui.Manager;
import nGui.controls.containers.VBox;
import nGui.controls.containers.Dialog;
import nGui.controls.Label;

class StaticColor
{
	public static function main()
	{
		var bs = new StaticColor();
	}
	
	public function new()
	{
		var mng : Manager = new Manager();
		var vbox = new VBox();
		var lbl1 = new Label( "This is the nGui label control" );
		var lbl2 = new Label( "How is this label aligned?" );
		var lbl3 = new Label( "" );
		var lbl4 = new Label( "This is inactive." );
		
		lbl1.fgColor = 0xFFFF00;
		lbl1.bgColor = 0x0000FF;
		lbl2.align = "RIGHT";
		lbl2.expand = true; 
		lbl2.fgColor = 0xFF0000;
		lbl2.bgColor = 0x00FFFF;
		lbl2.tip = "To the right, of course!";
		lbl4.active = false; 
		lbl3.fgColor = 0x00FF00;
		lbl3.bgColor = 0xFF00FF;
		lbl3.setHSeparator();
		lbl4.fgColor = 0x0000FF;
		lbl4.bgColor = 0xFFFF00;
		
		vbox.appendChild( lbl1 );
		vbox.appendChild( lbl2 );
		vbox.appendChild( lbl3 );
		vbox.appendChild( lbl4 );
		
		var win : Dialog = new Dialog( vbox );
		win.show();
		
		mng.loop();
		mng.close();
	}	
}